package cn.itcast.consumer.client;

import cn.itcast.consumer.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @author 虎哥
 */
@Component
public class UserClientFallback implements UserClient {
    @Override
    public User queryById(Long id) {
        // 失败的处理逻辑
        User user = new User();
        user.setName("guest");
        return user;
    }
}
